<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('slide/index')}">积分列表</a></li>
        <li><a href="{:url('score/add')}">添加积分</a></li>
    </ul>
    <table class="table table-hover table-bordered margin-top-20">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>积分数量</th>
            <th width="160">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="score" item="vo">
            <tr>
                <td>{$key+1}</td>
                <td>{$vo.name}</td>
                <td>
                    <a class="btn btn-xs btn-success" href="{:url('score/edit',array('id'=>$vo['id']))}">修改</a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('score/delete',array('id'=>$vo['id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>